<!--
  @author heguanghua
  @since 2019/06/13 13:58
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    与表格平级(表格置于另一layui-card-body种)
    -->
<div class="layui-card-body" th:fragment="query">

    <!--每个zmn-form-item一行，每行4列
        支持页面自适应，1280分辨率下不折行
        -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列-->
        <div class="item-inline">
            <label class="inline-label">业务类型：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="bizType" id="bizType" lay-search>
                            <option value="" th:selected="${0 == vo.bizType}">全部</option>
                            <option th:value="${item.key}"
                                    th:text="${item.value}"
                                    th:selected="${item.key == vo.bizType}"
                                    th:each="item:${bizTypeList}">平台
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">跟单部门：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="documentaryDepartmentId" id="documentaryDepartmentId" th:value="${vo.documentaryDepartmentId}" lay-search="">
                            <option value="">请选择</option>
                            <zmn th:each="documentaryDepartment,iterStat: ${departments}">
                                <option th:value="${documentaryDepartment.deptId}" th:text="${documentaryDepartment.deptName}" th:selected="${vo.documentaryDepartmentId == documentaryDepartment.deptId}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="status" id="status">
                            <option value="">请选择</option>
                            <option value="1" th:selected="${vo.status == 1}">停用</option>
                            <option value="2" th:selected="${vo.status == 2}">正常</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!--查询与重置按钮
            查询按钮lay-filter属性统一定义为zmn-form-submit
            如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
            -->
        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i>查询</button>
        </div>

        <div class="layui-split">&nbsp;</div>
        <div class="layui-split">&nbsp;</div>

        <div class="item-inline">
            <label class="inline-label">工程师跟单：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="engineerDocumentarySwitch" id="engineerDocumentarySwitch">
                            <option value="">请选择</option>
                            <option value="1" th:selected="${vo.engineerDocumentarySwitch == 1}">否</option>
                            <option value="2" th:selected="${vo.engineerDocumentarySwitch == 2}">是</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">服务商跟单：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="serviceProviderDocumentarySwitch" id="serviceProviderDocumentarySwitch">
                            <option value="">请选择</option>
                            <option value="1" th:selected="${vo.serviceProviderDocumentarySwitch == 1}">否</option>
                            <option value="2" th:selected="${vo.serviceProviderDocumentarySwitch == 2}">是</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">跟单内容：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="content" th:value="${vo.content}" placeholder="模糊搜索" autocomplete="off" class="layui-input" maxlength="45"/>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

